package me.winter.imgop;

import squint.SImage;

// This class first applies the recursive wavelet transformation to an
// image and then applies waterfall transformation to the result

public class RWaveletWaterfallSimplifier extends ImageSimplifier {

	@Override
	public SImage encode( SImage original ) {
		return new WaterfallSimplifier().encode( 
					new RecursiveWaveletSimplifier().encode( original ) );
	}

	@Override
	public SImage decode( SImage original ) {
		return new WaterfallSimplifier().decode(
					new RecursiveWaveletSimplifier().decode( original ) );
	}
}